﻿//JumbotCms_4.1 Final
using System;
using JumbotCms.Common;

namespace JumbotCms.WebFile.User
{
    public partial class _changeavatar : JumbotCms.API.UserCenter
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            User_Load("", "html");
            if (q("act") == "upload")
            {
                Session["jcms_user_avatar"] = "";
                Response.Write(GetPageHtml("user_changeavatar_upload"));
            }
            else if (q("act") == "cut")
            {
                Response.Write(GetPageHtml("user_changeavatar_cut").Replace("{$Session_User_Avatar}", Jumbot.Common.Session.Get("jcms_user_avatar")));
            }
            else
                Response.Write(GetPageHtml("user_changeavatar"));
        }
    }
}
